TreeModel: add missing nullability annotations
authorBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Tue, 24 Nov 2020 17:04:34 +0000 (18:04 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 2 Dec 2020 15:28:07 +0000 (10:28 -0500)
gtk/gtktreemodel.c

index 377a365d7b1ed209fba1bab4a702152440963a07..0eef6a64740dfd2a45d69d8ffd695e4ccdb0045a 100644 (file)
@@ -731,9 +731,10 @@ gtk_tree_path_new_from_indicesv (int *indices,
  *
  * This string is a “:” separated list of numbers.
  * For example, “4:10:0:3” would be an acceptable
- * return value for this string.
+ * return value for this string. If the path has
+ * depth 0, %NULL is returned.
  *
- * Returns: A newly-allocated string.
+ * Returns: (nullable): A newly-allocated string.
  *     Must be freed with g_free().
  */
 char *
@@ -1316,7 +1317,7 @@ gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model,
  * For example, “4:10:0:3” would be an acceptable
  * return value for this string.
  *
- * Returns: a newly-allocated string.
+ * Returns: (nullable): a newly-allocated string.
  *     Must be freed with g_free().
  */
 char *